export myenvsh=$(echo \
/hera/alice/xlu/alice/script/gitEnv-inuse-PWGJE-XGLUtils-STEER.sh \
/home/xlu/Workspace/alice/alice-env.sh \
)
#/home/xlu/workspace/software/alice-env.sh \
#/u/xlu/onlyforUpdage-alice-env.sh
#/hera/alice/xlu/alice/script/setupJet.sh
#/d/alice11/xlu/alice/alice-env.sh
for ii in $myenvsh
do
    if [ -e  $ii ]
    then
        echo
        echo "************** sourcing $ii **************"
        source $ii -n
    fi
done

#running train will blow up TMPDIR
#export TMPDIR=/d/alice11/xlu/myTmp

export GINC="\
-I$ROOTSYS/include \
"

export GLIB="\
$(root-config --libs) -lMinuit -lEG -lGeom -lVMC -lProof -lProofPlayer -lXMLParser -lXMLIO -lSpectrum -lTreePlayer -lMLP -lGui \
"

#CDB <- Gui
#STEER <- Minuit EG Geom VMC Proof ProofPlayer XMLParser,  RAWDatarec ESD STEERBase ANALYSIS RAWDatabase 
#ANALYSISalice <- XMLIO TreePlayer, AOD
#TPCrec <- Spectrum, TPCbase 
#TRDrec <- MLP, TRDbase STAT 

export myGCC="-g -O3 -Wall -Werror \
$GINC $GLIB \
-I$myINC \
"

#-I$ALICE_ROOT/XGLUtils -lXGLUtils \

echo
echo ROOTSYS:"    "$(readlink -f $ROOTSYS)
echo
echo GINC: 
echo $GINC | tr -s ' ' '\n'
echo
echo GLIB path: 
echo $GLIB | tr -s ' ' '\n' | grep "\-L"
echo
echo LD_LIBRARY_PATH: 
echo $LD_LIBRARY_PATH | tr -s ':' '\n'
echo
echo PATH: 
echo $PATH | tr -s ':' '\n'
echo
